<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>let const</title>
</head>
<body>

    <script>
    
        {

            // let const 块级作用域
            // const 定义的变量不能修改

            let a = 10;
            let b = 100;
            console.log(a);

            const obj = {
                name: 'ws',
                age: 10
            };

            obj.job = 'coder';

            console.log('obj',obj);

            /* const num = 100;
            num = 1000;
            console.log('num',num); */

            const ary = [1,2,3];
            ary.push(5);
            console.log('ary',ary);
        }

    </script>
    
</body>
</html>